import api from "../../utils/api";
const train = {
  state: {
    trainlist: "1651651",
  },
  mutations: {
    gettrainlist(state, paylode) {
      state.trainlist = paylode;
    },
  },
  actions: {
    async gettrainAsync(context) {
      const res = await api.gettrain();
      if (res.status == 0) {
        context.commit("gettrainlist", res.result);
      }
    },
  },
};
export default train;
